import request from '@/utils/request'
export function getPages(params) {
  return request({
    url: '/mendian/getList',
    method: 'get',
    params
  })
}

export function mendianAdd(data) {
  return request({
    method: 'post',
    url: '/mendian/add',
    data: {
      ...data
    }
  })
}

export function mendianUpdate(data) {
  return request({
    method: 'post',
    url: '/mendian/edit',
    data: {
      ...data
    }
  })
}

export function getById(id) {
  return request({
    method: 'get',
    url: '/mendian/getById',
    params: {
      id
    }
  })
}

export function mendianDel(id) {
  return request({
    method: 'get',
    url: '/mendian/deleteById',
    params: {
      id
    }
  })
}
